-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add query for the total supply of a coin #903
Conversation
the CI tests fail because they depend on the PR for |
I love this. |
@@ -189,6 +189,16 @@ func BankQuerier(bankKeeper types.BankViewKeeper) func(ctx sdk.Context, request | |||
} | |||
return json.Marshal(res) | |||
} | |||
if request.Supply != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Some happy path test with the mock would be good for regression
This is now available with cosmwasm 1.1 and wasmvm 1.1. Once those are merged, we can rebase and merge this one. |
* add bank supply query * remove a local dev dependency
* add bank supply query * remove a local dev dependency
currently it is not possible to query the total supply of a native SDK coin. this is something that protocols often need to do, especially that now contract are able to mint native coins thanks to the
tokenfactory
module. this PR adds the binding for this query type.see also:
NOTE: the CI tests fail because they depend on the PR for
wasmvm
being merged first